package middleware

import (
	"git.huoys.com/block_chain/mall/internal/user/service"
	"github.com/gin-gonic/gin"
)

type Middleware interface {
	Recovery() gin.HandlerFunc
	Auth() gin.HandlerFunc
}

type ml struct {
	user service.UserService
}

func NewMiddleware(user service.UserService) Middleware {
	return &ml{user: user}
}
